package regexobject;

import java.util.Arrays;

public class StringValueDemo {
    public static void main(String[] args) {
        int a=3243;
        String s=String.valueOf(a);
        a=Integer.parseInt(s);
        System.out.println(s);

        double d=43424.154;
        String s2=String.valueOf(d);
        d=Double.parseDouble(s2);
        System.out.println(d+""+s2);

        char c='Y';
        String s3=String.valueOf(c);
        System.out.println(s3.length());
        c=s3.charAt(0);
        char[] chars=new char[2];


        s3.getChars(0,s3.length(),chars,0);
        System.out.println(s3);
        System.out.println((int)chars[0]);
        System.out.println((int)chars[1]);
        System.out.println(Arrays.toString(chars));
    }
}
